<?php

declare(strict_types=1);

namespace App\Fastapp\Model;

use Mine\MineModel;

/**
 * @property int $id 主键
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 * @property int $user_id 用户id
 * @property int $source 来源1tg
 * @property int $source_user 来源用户
 * @property int $type 1普通群2超级群3频道
 * @property int $shop_id 
 * @property string $group_id 群id
 * @property string $name 名称
 * @property string $desc 
 * @property int $num 
 * @property int $status 
 * @property string $username 
 */
class FastappRobotGroup extends MineModel
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'fastapp_robot_group';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'created_at', 'updated_at', 'user_id', 'source', 'source_user', 'type', 'shop_id', 'group_id', 'name', 'desc', 'num', 'status', 'username'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime', 'user_id' => 'integer', 'source' => 'integer', 'source_user' => 'integer', 'type' => 'integer', 'shop_id' => 'integer', 'num' => 'integer', 'status' => 'integer'];
}
